exports.exec = function(regExp, string) {
  try {
    return regExp.exec(string)[1]
  } catch(e) {
    return ''
  }
}

exports.camelToDash = function (str){
  return str.replace(/[A-Z]/g, function(item) {
      return '-'+item.toLowerCase()
  }).replace(/^-/, '')
}